package com.wxl.www.wxl.shiro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxl.www.wxl.shiro.entity.SysRole;
import com.wxl.www.wxl.shiro.entity.UserInfo;
import org.apache.ibatis.annotations.Param;

public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 根据用户信息查询权限信息
     * @param userName
     * @return
     */
    SysRole findByUserInfo(@Param("userName") String  userName);

    SysRole findByUserName(@Param("userName") String userName);
}
